// 网络请求库
import axios from 'axios'
let server = axios.create({
    timeout:10000,
});
// 响应拦截器
server.interceptors.response.use(response =>response.data,err =>Promise.reject(err))
export const get = (url,config ={}) =>server.get(url,config)
export const post = (url,data ={},config={}) =>server.post(url,data,config)